package com.bingfor.easycablelink.data;


import java.io.File;
import java.util.List;

import okhttp3.RequestBody;
import retrofit2.Callback;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Modificator
 * Date: 2016/06/08
 * Time: 10:10
 * Connect: yunshangcn@gmail.com
 */
public interface NetworkApi {

    /**
     * 登录接口
     *
     * @param phone    the phone
     * @param password the password
     * @return observable observable
     */
    @FormUrlEncoded
    @POST("User/login")
    Observable<HttpResult> login(
            @Field("phone") String phone,
            @Field("password") String password
    );

}